<?php

namespace App\Http\Controllers\Wx;


class HomeController extends WxController
{
    protected $only = [];
    public function redirectShareUrl()
    {
        $type = $this->verifyString('type', 'groupon');
        $id = $this->verifyId('id');
        if ($type == 'groupon') {
            return redirect()->to('http://localhost:6255/#/items/detail/'. $id);
        }

        return redirect()->to('http://localhost:6255/#/items/detail/'. $id);

    }

}
